package com.xv.yan.beans.req;

import com.xv.yan.util.Constants;

public class StudentRequest {
    private int pageNow;//当前要查询第几页
    private int pageSize= Constants.PAGE_SIZE;//每页展示多少条
    private String studentName;
    //获取limit start中的start
    public int getStart(){
        return (pageNow - 1) * pageSize;
    }

    public int getPageNow() {
        return pageNow;
    }

    public void setPageNow(int pageNow) {
        this.pageNow = pageNow;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }
}
